package com.wx.mythread.thread;

public class MethodOtherSynchorize {

    public synchronized void method(){
        System.out.println("我是method");
        method1();
    }

    public synchronized void method1(){
        System.out.println("我是method1");
    }

    public static void main(String[] args) {
        MethodOtherSynchorize otherSynchorize = new MethodOtherSynchorize();
        otherSynchorize.method();
    }
}
